package com.warrior.gatherclient.service.impl;

import com.warrior.gatherclient.grpc.Messages;
import com.warrior.gatherclient.service.ComputerSystemService;
import com.warrior.gatherclient.service.SystemInfoService;
import com.warrior.gathercommon.constants.CommonStatus;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import oshi.SystemInfo;

/**
 * @ClassName ComputerSystemServiceImpl.java
 * @Author xujian
 * @Description
 * @CreateTime 2020年12月16日 11:48:00
 */
@Service
@Slf4j
public class ComputerSystemServiceImpl implements ComputerSystemService {

    @Autowired
    private SystemInfoService systemInfoService;

    @Override
    public String getServiceKey() {
        return CommonStatus.CONSTANT_COMPUTER_SYSYTEM;
    }

    @Override
    public Messages.Builder execute() {
        SystemInfo systemInfo = systemInfoService.getSystemInfo();
        return null;
    }


}
